package com.example.mypotiota_si.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

import com.example.mypotiota_si.R;

public class WangJiActivity extends AppCompatActivity {
    private EditText sr_zh,sr_sfz,sr_newmm;
    private Button dj_zh;
    private TextView dj_fh;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wang_ji);
        //隐藏标题栏
        ActionBar actionBar=getSupportActionBar();
        if (actionBar!=null){
            actionBar.hide();
        }
        //找到控件
        init_Control();
        //点击监听
        initMonitor();
    }

    private void initMonitor() {
        //点击找回密码
        dj_zh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        //点击返回
        dj_fh.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(WangJiActivity.this,DengLuActivity.class);
                startActivity(intent);
            }
        });
    }

    //找到控件
    private void init_Control() {
        sr_zh=findViewById(R.id.input_sr_zh);
        sr_sfz=findViewById(R.id.input_sr_sfz);
        sr_newmm=findViewById(R.id.input_sr_new_mm);
        dj_zh=findViewById(R.id.input_dj_zh);
        dj_fh=findViewById(R.id.input_dj_fh);
    }
}
